package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Customer;
import com.atguigu.jxc.entity.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ClassName: CustomerDao
 * Package: com.atguigu.jxc.dao
 *
 * @Description:
 * @Author: xvyy
 * @Create: 2025/2/21 - 15:39
 * @Version: v1.0
 */
public interface CustomerDao {
    int getCustomerCount(@Param("customerName") String customerName);

    List<Customer> getCustomerList(@Param("offSet") int offSet, @Param("rows") Integer rows, @Param("customerName") String customerName);

    Customer findCustomerByName(@Param("customerName") String customerName);

    void insertCustomer(@Param("customer") Customer customer);

    void updateCustomer(@Param("customer") Customer customer, @Param("customerId") Integer customerId);

    Customer getCustomerById(@Param("customerId") Integer customerId);

    void deleteCustomer(@Param("customerId") Integer customerId);
}
